﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.IoTManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.IoTManagement.MeterDeviceVMs
{
    public partial class MeterDeviceBatchVM : BaseBatchVM<MeterDevice, MeterDevice_BatchEdit>
    {
        public MeterDeviceBatchVM()
        {
            ListVM = new MeterDeviceListVM();
            LinkedVM = new MeterDevice_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MeterDevice_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._MeterDevice._DeviceCode")]
        public string DeviceCode { get; set; }
        [Display(Name = "_Model._MeterDevice._DeviceName")]
        public string DeviceName { get; set; }
        [Display(Name = "_Model._MeterDevice._DeviceType")]
        public MeterDeviceTypeEnum? DeviceType { get; set; }
        [Display(Name = "_Model._MeterDevice._Location")]
        public string Location { get; set; }
        [Display(Name = "_Model._MeterDevice._Area")]
        public string Area { get; set; }
        [Display(Name = "_Model._MeterDevice._Manufacturer")]
        public string Manufacturer { get; set; }
        [Display(Name = "_Model._MeterDevice._InstallDate")]
        public DateTime? InstallDate { get; set; }
        [Display(Name = "_Model._MeterDevice._CommAddress")]
        public string CommAddress { get; set; }
        [Display(Name = "_Model._MeterDevice._CommProtocol")]
        public DriverTypeEnum? CommProtocol { get; set; }
        [Display(Name = "_Model._MeterDevice._Status")]
        public EquipStatusEnum? Status { get; set; }
        [Display(Name = "_Model._MeterDevice._Remark")]
        public string Remark { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}